package com.project.common.constant;

/**
 * AuthConstant
 */
public class AuthConstant {
    public static final String SERVICE_NAME = "-service";
    public static final String DOC_NAME = "/v2/api-docs";
    public static final String P_TOKEN = "token";
    public static final String P_USERTOKEN = "token";
    public static final String P_VERSION = "version";
    public static final String U_CACHE = "user";
    public static final String BID = "user_bid";
    public static final String MISS = "Missing Request Header: 'token'";
    public static final String IS_CREDENTIALS_NON_EXPIRED = "您的登录凭证已过期，为保障您的账户安全，请您重新登录";

    public static final String U_ROLE_PREFIX = "ROLE_";

    public static final String STRING_REQBODY_CACHE = "cachedRequestBodyObject";

    private static final String ROLE_ADMIN = U_ROLE_PREFIX + "ADMIN";
    /**
     * 财务
     */
    private static final String ROLE_FINANCE = U_ROLE_PREFIX + "FINANCE";
    /**
     * 机构
     */
    private static final String ROLE_GROUP = U_ROLE_PREFIX + "GROUP";
    /**
     * 店铺主账户
     */
    private static final String ROLE_SHOP = U_ROLE_PREFIX + "SHOP";
    private static final String ROLE_USER = U_ROLE_PREFIX + "USER";
    public static final String UID = "uid";
    public static final String OPEN_ID = "open_id";
}
